<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
pageContext.setAttribute("basePath",basePath);
%>
<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="UTF-8">
		<title>通过Excel上传试题</title>

		<link rel="stylesheet" type="text/css" href="${basePath}resources/bootstrap/css/bootstrap-responsive.css">
		<link rel="stylesheet" type="text/css" href="${basePath}resources/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css" href="${basePath}resources/css/basic.css">
		<link rel="stylesheet" type="text/css" href="${basePath}resources/css/login.css">

		<script type="text/javascript" src="${basePath}resources/js/common/base.js"></script>
		<script type="text/javascript" src="${basePath}resources/js/common/jquery-3.2.1.min.js"></script>
		<script type="text/javascript" src="${basePath}resources/bootstrap/js/bootstrap.js"></script>
		<script type="text/javascript" src="${basePath}resources/angular-1.3.0/angular.min.js"></script>
		<script type="text/javascript" src="${basePath}resources/js/question_add.js"></script>
	</head>
	<body ng-app="myApp" ng-controller="questionAddController">
		<div id="header">
			<%@ include file="common/header.jsp" %>
		</div>
		<div id="container">
			<div>
				<p>
					<span style="color: red;">批量上传题目,需要按照模板内容填写;每一列的标题不能改动,依照模板文件</span>
				</p>
				<p>
					<a href="${basePath}admin/question/downloadExcelTemplete" title="下载模板">下载模板</a>
				</p>
			</div>
			<form method="post" action="${basePath}admin/question/back_addByExcel" name="loginForm" enctype="multipart/form-data">
				<div>
					<input type="file" name="questionExcel"/>
				</div>
				<div>
					<input type="submit" name="upload" value="上传题目">
				</div>
			</form>
		</div>
		<div id="footer">
			<%@ include file="common/footer.jsp" %>
		</div>
	</body>
</html>